home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / moonstonemadness.swf / scripts / __Packages / Library / BasicPopUp.as next >
Text File  |  2007-09-27  |  1KB  |  58 lines

  1. class Library.BasicPopUp extends Library.State
  2. {
  3.    static var NEED_UPDATE = 1;
  4.    function BasicPopUp(__mcRef)
  5.    {
  6.       super(__mcRef);
  7.       this.setState("Hidden");
  8.    }
  9.    function doHide()
  10.    {
  11.       this.setState("Hidden");
  12.    }
  13.    function doClose()
  14.    {
  15.       if(this.__get__CurrentState() == "Idle")
  16.       {
  17.          this.setState("Out");
  18.       }
  19.    }
  20.    function doOpen()
  21.    {
  22.       this.setState("In");
  23.    }
  24.    function get Ref()
  25.    {
  26.       return this.mcRef.mcState.mcBox;
  27.    }
  28.    function set Listener(__o)
  29.    {
  30.       this.oListener = __o;
  31.    }
  32.    function doIn()
  33.    {
  34.       if(this.isStateComplete())
  35.       {
  36.          this.setState("Idle");
  37.       }
  38.    }
  39.    function doOut()
  40.    {
  41.       if(this.isStateComplete())
  42.       {
  43.          this.setState("Hidden");
  44.       }
  45.    }
  46.    function doLoadStateAction()
  47.    {
  48.       this.mcRef.mcState.btnBlock.onRelease = function()
  49.       {
  50.       };
  51.       this.mcRef.mcState.btnBlock.useHandCursor = false;
  52.       if(this.__get__CurrentState() != "Hidden")
  53.       {
  54.          this.oListener.onPopUpEvent(Library.BasicPopUp.NEED_UPDATE,this);
  55.       }
  56.    }
  57. }
  58.